home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / rayshade / config.H < prev    next >
C/C++ Source or Header  |  1994-08-01  |  6KB  |  190 lines

  1. /* config.h
  2.  * This file was produced by running the config.h.SH script, which
  3.  * gets its values from config.sh, which is generally produced by
  4.  * running Configure.
  5.  *
  6.  * Feel free to modify any of this as the need arises.  Note, however,
  7.  * that running config.h.SH again will wipe out any changes you've made.
  8.  * For a more permanent change edit config.sh and rerun config.h.SH.
  9.  */
  10.  
  11.  
  12. /* EUNICE:
  13.  *    This symbol, if defined, indicates that the program is being compiled
  14.  *    under the EUNICE package under VMS.  The program will need to handle
  15.  *    things like files that don't go away the first time you unlink them,
  16.  *    due to version numbering.  It will also need to compensate for lack
  17.  *    of a respectable link() command.
  18.  */
  19. /* VMS:
  20.  *    This symbol, if defined, indicates that the program is running under
  21.  *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  22.  */
  23. /* XENIX:
  24.  *    This symbol, if defined, indicates thet the program is running under
  25.  *    Xenix (at least 3.0 ?).
  26.  */
  27. /* BSD:
  28.  *    This symbol, if defined, indicates that the program is running under
  29.  *    a BSD system.
  30.  */
  31. /*#undef EUNICE        /**/
  32. /*#undef VMS        /**/
  33. /*#undef XENIX        /**/
  34. #define BSD        /**/
  35.  
  36. /* CPPSTDIN:
  37.  *    This symbol contains the first part of the string which will invoke
  38.  *    the C preprocessor on the standard input and produce to standard
  39.  *    output.     Typical value of "cc -E" or "/lib/cpp".
  40.  */
  41. /* CPPMINUS:
  42.  *    This symbol contains the second part of the string which will invoke
  43.  *    the C preprocessor on the standard input and produce to standard
  44.  *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  45.  *    to specify standard input, otherwise the value is "".
  46.  */
  47. #define CPPSTDIN "/usr/lib/cpp"
  48. #define CPPMINUS ""
  49.  
  50. /* bzero:
  51.  *    This symbol is maped to memset if the  bzero() routine is not
  52.  *    available to set memory to 0.
  53.  */
  54. /*#undef    bzero(s,l)    memset((s),0,(l))    ;    /* mapped to memset */
  55.  
  56. /* CBRT:
  57.  *    This symbol, if defined, indicates that the cbrt() (cube root)
  58.  *    function is available.
  59.  */
  60. #define    CBRT        /**/
  61.  
  62. /* index:
  63.  *    This preprocessor symbol is defined, along with rindex, if the system
  64.  *    uses the strchr and strrchr routines instead.
  65.  */
  66. /* rindex:
  67.  *    This preprocessor symbol is defined, along with index, if the system
  68.  *    uses the strchr and strrchr routines instead.
  69.  */
  70. #define    index strchr    /* cultural */
  71. #define    rindex strrchr    /*  differences? */
  72.  
  73. /* MEMSET:
  74.  *    This symbol, if defined, indicates that the memset routine is available
  75.  *    to set blocks of memory. You should always use bzero() instead of
  76.  *    memset() because bzero is remaped to memset if necessary. This means
  77.  *    that a memset() routine must be provided in case MEMSET is not defined
  78.  *    and no bzero() is found.
  79.  */
  80. #define    MEMSET        /**/
  81.  
  82. /* POPEN:
  83.  *    This symbol, if defined, indicates that the popen routine is
  84.  *    available to open a pipe from a process.
  85.  */
  86. #define POPEN        /**/
  87.  
  88. /* RUSAGE:
  89.  *    This symbol, if defined, indicates that the getrusage() routine exists.
  90.  *    Inclusion of <sys/resource.h> and <sys/time.h> may be necessary.
  91.  */
  92. #define    RUSAGE        /**/
  93.  
  94. /* TIMES:
  95.  *    This symbol, if defined, indicates that the times() routine exists.
  96.  *    Note that this became obsolete on some systems (SUNOS), which now
  97.  * use getrusage().
  98.  */
  99. /* CLOCKTYPE:
  100.  *    This symbol holds the type returned by times(). It can be long,
  101.  *    or clock_t on BSD sites (in which case <sys/types.h> should be
  102.  *    included). Moreover, the Clock_t symbol is defined in common.h
  103.  *    and should be used for easy clean reference.
  104.  */
  105. #define TIMES        /**/
  106. #define CLOCKTYPE long        /**/
  107.  
  108. /* I_STRING:
  109.  *    This symbol, if defined, indicates to the C program that it should
  110.  *    include <string.h> (USG systems) instead of <strings.h> (BSD systems).
  111.  */
  112. #define I_STRING        /**/
  113.  
  114. /* I_SYSRESOURCE:
  115.  *    This symbol, if defined, indicates to the C program that it should
  116.  *    include <sys/resource.h>.
  117.  */
  118. #define    I_SYSRESOURCE        /**/
  119.  
  120. /* I_SYSTYPES:
  121.  *    This symbol, if defined, indicates to the C program that it should
  122.  *    include <sys/types.h>.
  123.  */
  124. #define    I_SYSTYPES        /**/
  125.  
  126. /* I_TIME:
  127.  *    This symbol, if defined, indicates to the C program that it should
  128.  *    include <time.h>.
  129.  */
  130. /* I_SYSTIME:
  131.  *    This symbol, if defined, indicates to the C program that it should
  132.  *    include <sys/time.h>.
  133.  */
  134. /* I_SYSTIMEKERNEL:
  135.  *    This symbol, if defined, indicates to the C program that it should
  136.  *    include <sys/time.h> with KERNEL defined.
  137.  */
  138. /*#undef I_TIME        /**/
  139. #define I_SYSTIME        /**/
  140. /*#undef I_SYSTIMEKERNEL        /**/
  141.  
  142. /* nrand:
  143.  *    This macro is to be used to generate uniformly distributed
  144.  *    random numbers over the range [0., 1.].
  145.  */
  146. /* seednrand:
  147.  *    This symbol defines the macro to be used in seeding the
  148.  *    random number generator (see nrand).
  149.  */
  150. #define nrand()        drand48()        /**/
  151. #define seednrand(x)    srand48(x)    /**/
  152.  
  153. /* VOIDFLAGS:
  154.  *    This symbol indicates how much support of the void type is given by this
  155.  *    compiler.  What various bits mean:
  156.  *
  157.  *        1 = supports declaration of void
  158.  *        2 = supports arrays of pointers to functions returning void
  159.  *        4 = supports comparisons between pointers to void functions and
  160.  *            addresses of void functions
  161.  *        8 = suports declaration of generic void pointers
  162.  *
  163.  *    The package designer should define VOIDUSED to indicate the requirements
  164.  *    of the package.  This can be done either by #defining VOIDUSED before
  165.  *    including config.h, or by defining defvoidused in Myinit.U.  If the
  166.  *    latter approach is taken, only those flags will be tested.  If the
  167.  *    level of void support necessary is not present, defines void to int.
  168.  */
  169. #ifndef VOIDUSED
  170. #define VOIDUSED 11
  171. #endif
  172. #define VOIDFLAGS 11
  173. #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
  174. #define void int        /* is void to be avoided? */
  175. #define M_VOID        /* Xenix strikes again */
  176. #endif
  177.  
  178. /* URT:
  179.  *     This symbol, if defined, indicates that the Utah Raster
  180.  *    Toolkit is being used.
  181.  */
  182. #define       URT          /**/
  183.  
  184. /* I_VARARGS:
  185.  *    This symbol, if defined, indicates to the C program that it should
  186.  *    include <stdlib.h>.
  187.  */
  188. /*#undef I_STDLIB        /**/
  189.  
  190.